$(".form-box").load("detailPackage/authenticationInfoDetail.html");
// $(".form-box").load("detailPackage/financialInfoDetail.html");
// $(".form-box").load("detailPackage/cooperationInfoDetail.html");
// $(".form-box").load("detailPackage/contractInfoDetail.html");
if(getQueryString("providerId")){
    var thisProviderId = getQueryString("providerId");
}

    var status = getQueryString("status");
/*编辑详情*/
function editDetail(pageName) {
    switch (pageName) {
        case 'authenticationInfo':
            $(".form-box").load("addPackage/authenticationInfo.html?type=edit");
            break;
        case 'financialInfo':
            $(".form-box").load("addPackage/financialInfo.html?type=edit");
            break;
        case 'cooperationInfo':
            $(".form-box").load("addPackage/cooperationInfo.html?type=edit");
            break;
        case 'contractInfo':
            $(".form-box").load("addPackage/contractInfo.html?type=edit");
            break;
        default:
            $(".form-box").load("addPackage/authenticationInfo.html?type=edit");
            break;
    }
}
/* #tab_demo 父级id
      #tab_demo .tabBar span 控制条
      click 事件 点击切换，可以换成mousemove 移动鼠标切换
      1	默认第2个tab为当前状态（从0开始）*/
jQuery.Huitab =function(tabBar,class_name,tabEvent,i){
    var $tab_menu=$(tabBar);
    // 初始化操作
    $tab_menu.removeClass(class_name);
    $(tabBar).eq(i).addClass(class_name);
    $tab_menu.bind(tabEvent,function(){
        $tab_menu.removeClass(class_name);
        $(this).addClass(class_name);
        var index=$tab_menu.index(this);
        pageShowFn($($tab_menu[index]).attr("pageName"))
    })
}
$.Huitab(".tabBar span","current","click",0);